home *** CD-ROM | disk | FTP | other *** search
- Path: teal.csn.net!not-for-mail
- From: thads@csn.net (Thad Smith)
- Newsgroups: comp.std.c
- Subject: Re: Meaning of __STDC__?
- Date: 13 Jan 1996 09:32:21 -0700
- Organization: T3 Systems
- Message-ID: <HN19wQ9ytNRW084yn@csn.net>
- References: <4d6673$8to@mailgate.bridgewater.ne.hcc.com>
- Reply-To: ThadSmith@acm.org
- NNTP-Posting-Host: 199.117.27.22
-
- In article <4d6673$8to@mailgate.bridgewater.ne.hcc.com>,
- kennedy@ (John W Kennedy) wrote:
-
- >Is there an official statement as to what __STDC__ means? Does it mean "This
- >compiler (in its current operating mode) fully supports ANSI Standard C," or
- >does it mean "This compiler (in its current operating mode) disallows all
- >extensions to ANSI Standard C."?
-
- It means that the implementation may be a conforming Standard C
- compiler. Although the intention was probably that it is
- defined only when the implementation conforms to Standard C, which
- does allow extensions, the only guarantee is that if __STDC__ isn't
- defined, then the compiler is not conforming.
-
- On a more practical level, some compilers undefine __STDC__ when
- extensions are enabled that make the compiler non-conforming, such as
- additional keywords (e.g., "far") or C++ style comments.
-
- Thad
-